﻿using System;
using System.Collections.Generic;
using System.Text;

namespace NKestrelClient.FaultTolerance
{
    public class IncreaseStrategy : IDelayStrategy
    {
        public IncreaseStrategy(int step)
        {
            this.step = step;
        }

        int step;

        public int GetDelay(int currentTry, int maxRepeats)
        {
            return currentTry * step;
        }
    }
}
